package model;
import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Station 
{
	private int id;
	private String city;
	private int velibid;
	private String nickname;
	private String address;
	private String fullAddress;
	private double latitude;
	private double longitude;
	private short isOpen;
	private boolean valid;
	private int version;
	private Date start;
	private Date stop;

	public Station () {}
	public Station ( int id , String city , int velibid , double latitude, double longitude , short isopen ) 
	{
		this.id = id;
		this.city = city;
		this.velibid = velibid;
		this.latitude = latitude;
		this.longitude = longitude;
		this.isOpen = isopen;
	}
	public Station ( int id , String city , int velibid , String nickname, String address , String fulladdress , 
			double latitude ,double longitude , short isopen , Boolean valid ,Date start , Date stop ) 
	{
		this(id, city, velibid, latitude, longitude, isopen);
		this.nickname = nickname;
		this.address = address;
		this.fullAddress = fulladdress;
		this.valid = valid;
		this.start = start;
		this.stop = stop;
	}

	
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public int getVelibid() {
		return velibid;
	}
	public void setVelibid(int velibid) {
		this.velibid = velibid;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getFullAddress() {
		return fullAddress;
	}
	public void setFullAddress(String fullAddress) {
		this.fullAddress = fullAddress;
	}
	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public double getLongitude() {
		return longitude;
	}
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}
	public short getIsOpen() {
		return isOpen;
	}
	public void setIsOpen(short isOpen) {
		this.isOpen = isOpen;
	}
	public boolean isValid() {
		return valid;
	}
	public void setValid(boolean valid) {
		this.valid = valid;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public Date getStart() {
		return start;
	}
	public void setStart(Date start) {
		this.start = start;
	}
	public Date getStop() {
		return stop;
	}
	public void setStop(Date stop) {
		this.stop = stop;
	}
	public String toString()
	{
		String result = "   id			: " + getId() + "\n" +
						"   city			: " + getCity() + "\n" +
						"   velibId		: " + getVelibid() + "\n" +
						"   nickname		: " + getNickname() + "\n" +
						"   address		: " + getAddress() + "\n" +
						"   latitude		: " + getLatitude() + "\n" +
						"   longitude		: " + getLongitude() + "\n" +
						"   isopen		: " + getIsOpen() + "\n" +
						"   valid		: " + isValid() + "\n" +
						"   version		: " + getVersion() + "\n" +
						"   start date		: " + getStart() + "\n" +
						"   stop date		: " + getStop() + "\n" +
										"\n";
		return result;
	}
}


//System.out.println("   id     : " + station.getId());
//System.out.println("   city   : " + station.getCity());
//System.out.println("   name   : " + station.getNickname());
//System.out.println("   address: " + station.getAddress());



